/**
 * @description 过滤对象中不为真的属性
 */

module.exports = {
    getFilter: (obj) => {
        let filter = {}
        for (let key in obj) {
            if (obj[key]) {
                filter[key] = obj[key]
            }
        }
        return filter;
    }
}